﻿@model PraceDyplomowe2.Models.TematViewModel

@{
    ViewBag.Title = "Utwórz nowy temat";
}

@section featured
{
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>@ViewBag.Title.</h1>
            </hgroup>
        </div>
    </section>
}

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        
        @Html.HiddenFor(model => model.PromotorUserId)

        <legend>Temat</legend>
        <div class="szukaj-tematu">
            <div class="poziomy-studiow">
                <div class="editor-label">
                    @Html.LabelFor(model => model.PoziomStudiowNazwa)
                </div>

                <div class="editor-field">
                    @Html.DropDownListFor(
                    model => model.PoziomStudiowId,
                    new SelectList(Model.PoziomyStudiow, "PoziomStudiowId", "Nazwa", Model.PoziomyStudiow.First().PoziomStudiowId))
                </div>
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.KierunekStudiowNazwa)
            </div>
            <div class="editor-field">
                @Html.DropDownListFor(
                    model => model.KierunekStudiowId,
                    new SelectList(Model.KierunkiStudiow, "KierunekStudiowId", "Nazwa", Model.KierunkiStudiow.First().KierunekStudiowId))
            </div>
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.PolskiTytul)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PolskiTytul)
            @Html.ValidationMessageFor(model => model.PolskiTytul)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AngielskiTytul)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AngielskiTytul)
            @Html.ValidationMessageFor(model => model.AngielskiTytul)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Opis)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Opis)
            @Html.ValidationMessageFor(model => model.Opis)
        </div>

        <p>
            <input class="zatwierdz" type="submit" value="Utwórz temat" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Lista tematów", "Index") |
    @Html.ActionLink("Mój profil", "Details", "ProfilPromotora")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
